#include <iostream>
#include <string>

using namespace std;

int main()
{
    int a, b;
    cin >> a >> b;
    int sum = a + b;
    string s;
    s = to_string(sum);
    if(sum >= 0)
    {
        for (int i = s.size() - 3; i > 0; i -= 3)
        {
            s.insert(i, ",");
        }
    }
    else
    {
        for (int i = s.size() - 3; i > 1; i -= 3)
        {
            s.insert(i, ",");
        }
    }
    
    cout << s;
    return 0;
}